package com.atguigu.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class NacosTestController {

    @Value("${server.port}")
    private Integer serverPort;

    @GetMapping("/")
    public String index() {
        return "nacos provider";
    }

    @GetMapping("/payment/nacos")
    public String test01() {
        return "registry provider to nacos @port: " + serverPort;
    }



    @GetMapping("/aaa")
    public String test02() {
        return "test02";
    }

    @GetMapping("/bbb")
    public String test03() {
        return "test03";
    }

}
